package com.flower.enjoyment.flower.mapper;

import com.flower.enjoyment.flower.entity.ServiceType;
import com.flower.enjoyment.flower.entity.ShopService;
import com.flower.enjoyment.flower.entityDo.ServiceTypeDo;
import com.flower.enjoyment.flower.entityDo.ShopServiceDo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface ServiceTypeMapper {
    int deleteByPrimaryKey(String id);

    int insert(ServiceType record);


    ServiceTypeDo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ServiceType record);

    /**
     * 获取服务项目
     * @param shopId
     * @return
     */
    Page<ServiceTypeDo> getServiceTypeListByPage(@Param("shopId") String shopId);

    /**
     * 获取门店服务项目
     * @param shopId
     * @return
     */
    Page<ShopServiceDo> getShopServiceListByPage(@Param("shopId") String shopId);

    /**
     * 保存店铺服务
     * @param shopService
     * @return
     */
    int insertShopService(ShopService shopService);

    /**
     * 删除店铺服务
     * @param id
     * @return
     */
    int deleteShopService(@Param("id") String id);

    /**
     * 根据店铺ID删除店铺服务
     * @param shopId
     * @return
     */
    int deleteShopServiceByShopId(@Param("shopId") String shopId);
}